﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MyMovieSystem
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void FrmMain_Load(object sender, EventArgs e)
        {
            pictureBox2.Parent = pictureBox1;
        }

        private void 影片管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMovieAdmin admin = new FrmMovieAdmin();
            admin.Show();
        }

        private void 用户管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmUserInfo userInfo = new FrmUserInfo();
            userInfo.Show();
        }

        private void 营业情况ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmSelling sell = new FrmSelling();
            sell.Show();
        }

        private void 切换登录ToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            FrmAllM all = new FrmAllM();
            all.Show();
            this.Close();
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.toolStripStatusLabel2.Text = DateTime.Now+"";
        }
    }
}
